<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        #container {
            display: grid;
            grid-auto-rows: minmax(50px, auto);
            row-gap: 25px;
        }
        .item{
            background: grey;
            font-size: 3em;
        }
    </style>
</head>
<body>
    <div id="container">
        <div class="item item-1">1</div>
        <div class="item item-2">2</div>
        <div class="item item-3">3</div>
        <div class="item item-4">4</div>
        <div class="item item-5">5</div>
        <div class="item item-6">6</div>
        <div class="item item-7">7</div>
        <div class="item item-8">8</div>
        <div class="item item-9">9</div>
        <div class="item item-1">10</div>
        <div class="item item-2">12</div>
        <div class="item item-3">13</div>
        <div class="item item-4">14</div>
        <div class="item item-5">15</div>
        <div class="item item-6">16</div>
        <div class="item item-7">17</div>
        <div class="item item-8">18</div>
        <div class="item item-9">19</div>
      </div> 
</body>
</html>